package cn.darkhorse.ticket.production.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 生产计划信息
 * </p>
 *
 * @author maoguanjun
 * @since 2024-01-19
 */
@Getter
@Setter
  @TableName("ticket_production_plan_info")
@ApiModel(value = "TicketProductionPlanInfo对象", description = "生产计划信息")
public class TicketProductionPlanInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("计划编号")
      @NotNull(message = "请输入计划编号")
      private String code;
      @ApiModelProperty("计划编号1")
      private String name;

      @ApiModelProperty("计划来源0销售订单1补货单2其他")
      @NotNull(message = "请输入计划来源")
      private Integer source;

      @ApiModelProperty("关联单号")
      private String relatedNum;

      @ApiModelProperty("客户Id")
      @NotNull(message = "请输入客户名称")
      private Long customerId;

      @ApiModelProperty("计划交期")
      @NotNull(message = "请输入计划交期")
      private LocalDateTime planedDeliveryDate;

      @ApiModelProperty("计划生产开始时间")
      @NotNull(message = "请输入计划生产开始时间")
      private LocalDateTime planedStartTime;

      @ApiModelProperty("计划生产结束时间")
      @NotNull(message = "请输入计划生产结束时间")
      private LocalDateTime planedEndTime;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("计划状态 0未生成工单1部分生成2生成完毕3已关闭")
      private Integer status;

      @ApiModelProperty("系统创建时间")
      private LocalDateTime gmtCreate;

      @ApiModelProperty("系统更新时间")
      private LocalDateTime gmtModified;

      @ApiModelProperty("创建人")
      private Long creator;

      @ApiModelProperty("修改人")
      private Long modifier;
  @ApiModelProperty("是否自动生成 0否 1是")
  private Boolean isAutomatically;

}
